package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;



@Entity
public class MemberActiveList implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@ManyToOne
	@JoinColumn(name="base_username",nullable=false)
	private MemberBaseInfo baseUsername;
	
	@Column(length=16,nullable=false)
	private String activeUsername;
	
	@Column(length=32,nullable=false)
	private String activeName;
	
	/**
	 * 1－100$
	 * 2－200$
	 * 5－500$
	 * 10－1000$
	 * 30－3000$
	 */
	private int activeType;
	
	@Column(nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date activeTime;
	
	@Column(nullable=false)
	private double walletRemain;
	
	private String activeRemark;
	
	private String activeSpare;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public MemberBaseInfo getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(MemberBaseInfo baseUsername) {
		this.baseUsername = baseUsername;
	}

	public String getActiveUsername() {
		return activeUsername;
	}

	public void setActiveUsername(String activeUsername) {
		this.activeUsername = activeUsername;
	}

	public String getActiveName() {
		return activeName;
	}

	public void setActiveName(String activeName) {
		this.activeName = activeName;
	}

	public int getActiveType() {
		return activeType;
	}

	public void setActiveType(int activeType) {
		this.activeType = activeType;
	}

	public Date getActiveTime() {
		return activeTime;
	}

	public void setActiveTime(Date activeTime) {
		this.activeTime = activeTime;
	}

	public double getWalletRemain() {
		return walletRemain;
	}

	public void setWalletRemain(double walletRemain) {
		this.walletRemain = walletRemain;
	}

	public String getActiveRemark() {
		return activeRemark;
	}

	public void setActiveRemark(String activeRemark) {
		this.activeRemark = activeRemark;
	}

	public String getActiveSpare() {
		return activeSpare;
	}

	public void setActiveSpare(String activeSpare) {
		this.activeSpare = activeSpare;
	}
	
}
